package swu.edu.cn.javaee.entity;

import org.apache.ibatis.type.Alias;

@Alias("topic")
public class Topic {
    private String tid;//唯一确定topic
    private String title;//topic标题
    private String content;//内容
    private String author;//发布者——uid
    private String publish_time;//发布时间，自动获取


    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublish_time() {
        return publish_time;
    }

    public void setPublish_time(String publish_time) {
        this.publish_time = publish_time;
    }

    @Override
    public String toString() {
        return "Topic{" +
                "tid='" + tid + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", author='" + author + '\'' +
                ", publish_time='" + publish_time + '\'' +
                '}';
    }

}
